package com.parking.mgr.useraccount.model.param;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @ClassName SysLoginParam
 * @Description 系统登录参数
 * @Auther: zhijianpu
 * @Date: 2023/5/23
 */
@Data
@ApiModel(description= "系统登用户参数")
public class SysLoginParam {

    /**
     * id
     */
//    @ApiModelProperty(value = "验证码ID")
//    @NotNull(message = "验证码ID不能为空，请检查id参数")
//    private String id;

    @ApiModelProperty(value = "用户手机号")
    @JsonProperty("phone")
    @NotNull(message = "phone，请检查phone参数")
    private String phone;

    @ApiModelProperty(value = "用户密码")
    @JsonProperty("fPassword")
    @NotNull(message = "fPassword不能为空，请检查fPassword参数")
    @Length(min = 8, max = 20, message = "密码长度在8到20位之间")
    private String fPassword;

//    @ApiModelProperty(value = "验证码")
//    @JsonProperty("fCode")
//    @NotNull(message = "验证码不能为空，请检查fCode参数")
//    private String fCode;
}
